package com.javafactroy.kunlong.bip.icp.message.dxp.app;

import com.javafactroy.kunlong.bip.icp.message.dxp.base.DxpMsg;
import lombok.Data;

import java.nio.ByteBuffer;

@Data
public class SingleMessage extends DxpMsg {
    public SingleMessage() {

    }

    @Override
    public byte[] encode() {
        ByteBuffer bf = ByteBuffer.allocate(8);
        bf.putInt(8);
        bf.put("1234".getBytes());
        return bf.array();

    }
}
